<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\massage\model;

class ServiceGuarantee extends \app\BaseModel
{
    protected $name = "massage_service_guarantee_list";
    public static function getList($where, $limit = 10)
    {
        return self::where($where)->order("top desc,id desc")->paginate($limit)->toArray();
    }
    public static function add($data)
    {
        $data["update_time"] = time();
        $data["create_time"] = $data["update_time"];
        return self::insert($data);
    }
    public static function edit($where, $update)
    {
        return self::where($where)->update($update);
    }
    public static function getListNoPae($where)
    {
        return self::where($where)->field("id,title,sub_title")->order("top desc,id desc")->order("top desc,id desc")->select()->toArray();
    }
}
